package com.baizhi.springboot.dao;

import com.baizhi.springboot.entity.Audio;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AudioDao {
    List<Audio> selectAudioByPage(@Param("offset")Integer offset, @Param("limit")Integer limit,@Param("albumId")Integer albumId);

    Integer selectCount();

    void insertAudio(Audio audio);

    void deleteAudio(Integer id);

    void deleteByAlbumAudio(Integer id);
}
